package neu.soft.service;

import neu.soft.constant.OrderStatus;
import neu.soft.constant.TaskOrderStatus;
import neu.soft.entity.NormalOrder;

import java.util.List;
import java.util.Map;

public interface OrderService {
    public List<NormalOrder> findAllOrder();

    public NormalOrder addOrder(NormalOrder normalOrder);

    public boolean cancelOrder(Map<String,Object> map);//改状态

    public List<NormalOrder> findUserOrder(Map<String,Object>map);
    public boolean changeOrderStatus(Map<String,Object> map);

    public OrderStatus showStatus(Map<String,Object> map);//查看状态

    public NormalOrder findById(Map<String,Object> map);


    public NormalOrder returnSales(Map<String,Object> map);//改状态+发送

    public NormalOrder exchangeSales(NormalOrder normalOrder);//存一个换货单

 //   public NormalOrder lackSales();
    public Map<String,Object> lackSales(NormalOrder normalOrder);

    public int deleteUselessOrder (Map<String,Object>map);
}
